import React from 'react';
import useWindowSize from './hooks/useWindowSize';

function UserDefinedHooks(params) {
  const size = useWindowSize()
  return (
    <>
      <p>宽度是：{size.width}</p>
      <p>高度是：{size.height}</p>
    </>
  )
}

export default UserDefinedHooks
